@class XMLNode;

@interface XMLParser : NSObject
{
    XMLNode *rootNode;
    XMLNode *currentNode;
}

// If an error occurs:
// a) err != nil: returns tree of an XML parsed before an error occured and sets
//    *err to point to the error description;
// b) err == nil: returns nil.
- (XMLNode *)parse:(NSData *)xml error:(NSError **)err;

@end
